/**
 * Example of a promise returning a value
 */


// example of a promise
async function example() {
	return new Promise((resolve) => {
		console.log('inside promise');
		resolve('some value');
	});
}

async function init() {
	console.log('before promise');
	var ret = await example();
	console.log('promise returned: '+ret);
	console.log('after promise');
}

init();
